<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/Global.css" />
<style type="text/css">

</style>
</head>
<body>

<div id="wrap">
	<div id="header">
		<div id="logo">
			<?php echo ($templogo); ?>
		</div>
		<div id="nav">
			<ul>
				<?php if(is_array($navigation)): $i = 0; $__LIST__ = $navigation;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$menu): $mod = ($i % 2 );++$i; if($menu["title"] == 网站首页): ?><li class="ho"> 
		        	<a href="<?php echo ($menu["link"]); ?>" title="<?php echo ($menu["title"]); ?>" ><?php echo ($menu["title"]); ?></a>
		        </li>
		        <?php else: ?>
		        <li> 
		        	<a href="<?php echo ($menu["link"]); ?>" title="<?php echo ($menu["title"]); ?>" ><?php echo ($menu["title"]); ?></a>
		        </li><?php endif; endforeach; endif; else: echo "" ;endif; ?>
			</ul>
		</div>
	</div>
</div>

<div id="content">
	<div id="ads">
		<div class="pic" id="pic">
			<ul>
				<li><a><img src="__PUBLIC__/Images/Photos/DSC01670.JPG" style="width:620px;height:350px" /></a></li>
				<li><a><img src="__PUBLIC__/Images/Photos/DSC01671.JPG" style="width:620px;height:350px" /></a></li>
				<li><a><img src="__PUBLIC__/Images/Photos/DSC01672.JPG" style="width:620px;height:350px" /></a></li>
				<li><a><img src="__PUBLIC__/Images/Photos/DSC01673.JPG" style="width:620px;height:350px" /></a></li>
				<li><a><img src="__PUBLIC__/Images/Photos/DSC01674.JPG" style="width:620px;height:350px" /></a></li>
			</ul>
		</div>
		<div class="title">
		<p></p>
		</div>
		<div class="index">
			<ul>
				<li>1</li>
				<li>2</li>
				<li>3</li>
				<li>4</li>
				<li>5</li>
			</ul>
		</div>
	</div>
	<div id="news">
		<div class="title"></div>
		<div class="message">				
			<ul>
			<?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$news): $mod = ($i % 2 );++$i;?><li><a href="<?php echo ($news["link"]); ?>"><?php echo ($news["title"]); ?></a><span><?php echo (substr($news["time"],0,10)); ?></span></li><?php endforeach; endif; else: echo "" ;endif; ?>
			</ul>
		</div>
	</div>
	<div id="about">
		<div class="title"></div>
		<div class="message"><?php echo ($intro); ?></div>
	</div>	
	<div id="products">
		<div class="title"></div>
		<div class="message">
			<ul>
			<?php if(is_array($tech)): $i = 0; $__LIST__ = $tech;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$news): $mod = ($i % 2 );++$i;?><li><a href="#"><?php echo ($news["title"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
			</ul>
		</div>
	</div>
	<div id="others">
		<div class="title"></div>
		<div class="message">
			<ul>
				<li><a><img src="__PUBLIC__/Images/Photos/DSC01689.JPG" style="width:160px;height:140px" /></a></li>
				<li><a><img src="__PUBLIC__/Images/Photos/DSC01695.JPG" style="width:160px;height:140px" /></a></li>
			</ul>
		</div>
	</div>
</div>
<div id="footer">
	<div class='link'>
		<ul>
			<?php if(is_array($footnav)): $i = 0; $__LIST__ = array_slice($footnav,0,4,true);if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$menu): $mod = ($i % 2 );++$i;?><li><a href='#'><?php echo ($menu["title"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
		</ul>
	</div>
	<div class='communication'>
		<p><?php echo ($footnav["communication"]); ?></p>
		<p><?php echo ($footnav["footnavcopyright"]); ?></p>
	</div>
	
</div>

</body>
</html>
<script>
var pics = document.getElementsByClassName('pic')[0].children[0].children;
pics[0].style.display="block";
var picIndex = 1;
function getNextIndex(){
	if(picIndex < pics.length - 1){
		picIndex++;
		return picIndex;
	}else{
		picIndex = 0;
		return picIndex;
	}
};
function rotateImage(){
	var index = getNextIndex();
	for(var i=0;i<pics.length;i++){
		if(i==index){
			pics[i].style.display="block";
		}else{
			pics[i].style.display="none";
		}
	}
};
window.onload = setInterval(rotateImage,3000);



</script>